package com.knowledgeqa.system.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 回答实体类
 */
public class Answer implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;            // 回答ID
    private Long questionId;    // 问题ID
    private Long userId;        // 回答用户ID
    private String content;     // 回答内容
    private Integer isAccepted; // 是否被采纳：0否，1是
    private Date createTime;    // 创建时间
    private Date updateTime;    // 更新时间

    // getter和setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getIsAccepted() {
        return isAccepted;
    }

    public void setIsAccepted(Integer isAccepted) {
        this.isAccepted = isAccepted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}